(: pragma bea:global-element-parameter parameter="$newOperation1" element="ns1:NewOperation" location="../WSDLs/mockCreateNewCustomerInSF.wsdl" :)
(: pragma bea:global-element-return element="ns0:UpdateStatus" location="../WSDLs/mockUpdateStatusOrderInSL.wsdl" :)

declare namespace ns1 = "http://www.example.org/mockCreateNewCustomerInSF/";
declare namespace ns0 = "http://www.example.org/mockUpdateStatusInOracleDB/";
declare namespace xf = "http://tempuri.org/ActivateNewCustomer/Transformation/inputToUpdateStatusOrderInSF/";

declare function xf:inputToUpdateStatusOrderInSF($newOperation1 as element(ns1:NewOperation))
    as element(ns0:UpdateStatus) {
        <ns0:UpdateStatus>
            <orderId>{ data($newOperation1/orderId) }</orderId>   
            <newValueStatusOrder>COMPLETE</newValueStatusOrder>

        </ns0:UpdateStatus>
};

declare variable $newOperation1 as element(ns1:NewOperation) external;

xf:inputToUpdateStatusOrderInSF($newOperation1)